<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>TaskTool</title>
</h:head>

<h:body>
	<h:form>
		<a4j:outputPanel>
			<div align="center"><h:panelGrid columns="1">
				<h:outputText value="Task Tool"></h:outputText>
			</h:panelGrid></div>

			<div align="right"><h:panelGrid columns="2">
				<h:outputText
					value="Welcome #{loginbean.username} ! #{loginbean.projectName} | #{loginbean.role} | "></h:outputText>
				<h:commandLink action="#{loginbean.doLogout}">
					<h:outputText value="Sign Off"></h:outputText>
				</h:commandLink>
			</h:panelGrid></div>
		</a4j:outputPanel>

		<a4j:outputPanel>
			<rich:tabPanel>
				<rich:tab name="Users">
					<h:form>
						<ui:include src="user/usersTable.xhtml"></ui:include>
						<ui:include src="user/editUser.xhtml"></ui:include>
						<ui:include src="user/addUser.xhtml"></ui:include>
					</h:form>
				</rich:tab>
			</rich:tabPanel>
		</a4j:outputPanel>
	</h:form>
</h:body>

</html>
